package com.ktgj.customer.mapper;

import java.util.List;
import com.ktgj.customer.domain.CommonAddresses;
import org.apache.ibatis.annotations.Param;

/**
 * 常用地址Mapper接口
 * 
 * @author ruoyi
 * @date 2021-09-01
 */
public interface CommonAddressesMapper 
{
    /**
     * 查询常用地址
     * 
     * @param commonAddresserId 常用地址ID
     * @return 常用地址
     */
    public CommonAddresses selectCommonAddressesById(Long commonAddresserId);

    /**
     * 查询常用地址列表
     * 
     * @param commonAddresses 常用地址
     * @return 常用地址集合
     */
    public List<CommonAddresses> selectCommonAddressesList(CommonAddresses commonAddresses);

    /**
     * 新增常用地址
     * 
     * @param commonAddresses 常用地址
     * @return 结果
     */
    public int insertCommonAddresses(CommonAddresses commonAddresses);

    /**
     * 修改常用地址
     * 
     * @param commonAddresses 常用地址
     * @return 结果
     */
    public int updateCommonAddresses(CommonAddresses commonAddresses);

    /**
     * 删除常用地址(我的-删除常用地址)
     * 
     * @param commonAddresserId 常用地址ID
     * @return 结果
     */
    public int deleteCommonAddressesById(Long commonAddresserId);

    /**
     * 批量删除常用地址
     * 
     * @param commonAddresserIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteCommonAddressesByIds(Long[] commonAddresserIds);

    /**
     * 根据会员ID查询常用地址
     * */
    public List<CommonAddresses> selectCommonaddress(Long memberId);

    /**
     * 我的-新增常用地址
     * */
    public int insertCommonAddressesByCustomerId(CommonAddresses commonAddresses);

    /**
     * 我的-修改常用地址
     * */
    public int updateCommonAddressesByCustomerId(CommonAddresses commonAddresses);

    /**
     * 更新默认状态
     * */
    public int updateCommonAddressesByWhetherDefaultAddress(CommonAddresses commonAddresses);

    /**
     * 查询待编辑的常用地址
     * */
    public CommonAddresses addressToBeModified(Long commonAddresserId);

    /**
     * 后端——查询常用地址
     * */
    public List<CommonAddresses> backSelectCommonAddresses(Long memberId);

    /**
     * 后端——查询待修改的常用地址
     * */
    public CommonAddresses backSelectCommonAddressesById(Long commonAddresserId);

    /**
     * 后端——新增常用地址
     * */
    public int backInsertCommonAddresses(CommonAddresses commonAddresses);

    /**
     * 后端——修改常用地址
     * */
    public int backUpdateCommonAddresses(CommonAddresses commonAddresses);

    /**
     * 后端——删除常用地址
     * */
    public int backDeleteCommonAddresses(Long commonAddresserId);

    /**
     * 查询会员常用地址
     * */
    public CommonAddresses selectCommonAddresses(Long memberId);
}
